package Application.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import Application.entity.Result;
import Application.entity.Student;
import Application.entity.StudentVo;

public interface StudentDao {

	@Insert("insert into student (id,password,name,institue,clas,sex)value(#{id},#{password},#{name},#{institue},#{clas},#{sex})")
	public void insertStudent(Student student);
	@Select("select * from student")
	public List<Student> findStudentList();
	@Select("select * from student where id=#{id}")
	public Student findStudentById(int id);
	@Update("update student set password=#{password} where id=#{id}")
	public void updateStudent(StudentVo student);
	@Select("select * from student where clas=#{clas}")
	public List<Student> findMatesByClas(String clas);
}
